package one.one.fourteen;

public class Log {

	static int log(int a) {
		int r=0;
		while(Math.pow(2, r)<=a) {
			r++;
		}
		return --r;
	}
	
	public static void main(String[] args) {
		int r=log(3);
		System.out.println(r);

	}

}
